package com.ht.web.education;

import com.ht.bean.emp.Empinfo;
import com.ht.service.education.ProjectService;
import com.ht.service.education.TermService;
import com.ht.service.education.TrialService;
import com.ht.service.student.StudentclassService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author lrq
 * @date 2020/6/10 19:38
 * 中心跳转
 */
@Controller
@RequestMapping("skip")
public class ECenterController {

    @Resource
    private StudentclassService studentclassService;
    @Resource
    private TermService termService;

    @Resource
    private TrialService trialService;
    @Resource
    private ProjectService projectService;

    //去到班级成绩管理页面
    @RequestMapping("classscorelist")
    public String modellist(Map map){
        map.put("calsss",studentclassService.selList());
        map.put("terms",termService.allTerm());
        return "education/classscorelist";
    }
    //去到班级答辩管理页面
    @RequestMapping("classreplylist")
    public String replylist(Map map){
        map.put("calsss",studentclassService.selList());
        map.put("projects",projectService.allProject());
        return "education/classreplylist";
    }

    //去到班级成绩图表页面
    @RequestMapping("stuscorechart")
    public String replylist2(Integer id,Map map){
        map.put("scoreid",id);
        return "education/stuscorechart";
    }
    //去到班级答辩图表页面
    @RequestMapping("stureplychart")
    public String replylist3(Integer id,Map map){
        map.put("replyid",id);
        return "education/stureplychart";
    }

}
